package com.jcsz.gulimall.order.feign;

import com.jcsz.common.utils.R;
import com.jcsz.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @className: WareFeignService
 * @author: 一把Po吉他
 * @date: 2022/11/12 22:40
 * @version: 1.0
 **/
@FeignClient("gulimall-ware")
public interface WareFeignService {
    @RequestMapping("/ware/waresku/hasstock")
    R getSkuHasStocks(@RequestBody List<Long> skuIds);

    @GetMapping("/ware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);

    @PostMapping(value = "/ware/waresku/lock/order")
    R orderLockStock(WareSkuLockVo wareSkuLockVo);
}
